package com.gimi.cloud.jimi.app.consumer.service;


import com.gimi.cloud.jimi.common.exception.MsgException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by shazhiwei on 2017/10/17.
 */
public interface RegisterService {

    /**
     * 用户登录(密码登录)
     * @param body 请求参数
     * @param httpServletResponse
     * @param httpServletRequest
     */
    void doLoginByPassword(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    /**
     * 验证码登录
     * @param body 请求参数
     * @param httpServletResponse
     * @param httpServletRequest
     */
    void doLoginByPwdCode(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    /**
     * 修改密码(通过原密码修改)
     * @param body 请求参数
     * @param httpServletResponse
     * @param httpServletRequest
     */
    void modifyPwd(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest) throws MsgException;

    /**
     * 初始化密码
     * @param requestData 请求参数
     * @param response
     * @param request
     */
    void initPwd(String requestData, HttpServletResponse response, HttpServletRequest request);

    /**
     * 忘记密码 验证码验证
     * @param requestData 请求参数
     * @param response
     * @param request
     */
    void checkModifyPassword(String requestData, HttpServletResponse response, HttpServletRequest request);

    /**
     * 修改密码(通过手机验证码修改，没用到)
     * @param requestData 请求参数
     * @param response
     * @param request
     */
    void modifyPasswordByPwdCode(String requestData, HttpServletResponse response, HttpServletRequest request);
}
